Imports System.Collections.ObjectModel

Public Class V2ViewModelTrvMenu
    Inherits ObservableCollection(Of IViewModelTrvMenuItem)

    Sub New(ByVal ParamArray data() As IViewModelTrvMenuItem)
        MyBase.New(data)
    End Sub

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Sub New(ByVal data As IEnumerable(Of IViewModelTrvMenuItem))
        MyBase.New(data)
    End Sub

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Sub New()
    End Sub

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public ReadOnly Property Root As IViewModelTrvMenuItem
        Get
            If Count = 0 Then Return Nothing
            Return Me(0)
        End Get
    End Property
End Class
